package com.kaka.service.serviceimpl;

import com.kaka.mapper.OrdersMapper;
import com.kaka.pojo.Order;
import com.kaka.service.OrdersService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class OrdersServiceImpl implements OrdersService {

    @Autowired
    OrdersMapper ordersMapper;

    @Override
    public List<Order> findAll() {
        return ordersMapper.selectAll();
    }

    @Override
    public Order selectById(Integer id) {
        return ordersMapper.selectById(id);
    }
}
